<div class="span-19">
    <div id="content">
        <h1>Manage User</h1>
        <?php if (isset($flash_mess) && $flash_mess != ''): ?>
            <div class="flash-success">
                <ul>
                    <?php echo $flash_mess; ?>
                </ul>
            </div>
        <?php endif; ?>
        <?php if (isset($error)): ?>
            <div class="flash-error">
                <ul>
                    <?php echo $error; ?>
                </ul>
            </div>
        <?php endif; ?>
        <table>
            <tr>
                <th>#</th>
                <th>Name</th>
                <th>Email</th>
                <th>Gender</th>
                <th>Option</th>
            </tr>
            <?php $count=0;foreach($user as $item):?>
            <?php
            $count++;
            echo '<tr>';
            echo '<td>' .$count. '</td>';
            echo '<td>' .$item['name']. '</td>';
            echo '<td>' .$item['email']. '</td>';
            echo '<td>' .$item['gender']. '</td>';
            echo '<td><a href="' .base_url('user/update/'.$item['id']). '">Edit</a> | <a href="' .base_url('user/delete/'.$item['id']). '" onclick="return confirm(\'Do you want to delete?\')">Delete</a></td>';
            echo '</tr>';
            ?>
            <?php endforeach;?>
        </table>
        <div style="text-align:center;"><?php echo $pagination_links; ?></div>
    </div>
</div>    
<div class="span-5 last">
    <div id="sidebar">
        <div class="portlet" >
            <div class="portlet-decoration">
                <div class="portlet-title">Operations</div>
            </div>
            <div class="portlet-content">
                <ul class="operations" >
                    <li><a href="<?php echo base_url();?>user/index">Create User</a></li>
                    <li><a href="<?php echo base_url();?>user/display">List User</a></li>
                </ul></div>
        </div>	
    </div><!-- sidebar -->
</div>